home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!gibson
- From: gibson@netcom.com (Bob Gibson)
- Subject: Re: STL multimap question
- Message-ID: <gibsonDoHFvE.6sM@netcom.com>
- Organization: A number of persons or groups united for some purpose
- X-Newsreader: TIN [version 1.2 PL1]
- References: <4i9e8b$9p0@sundog.tiac.net>
- Date: Mon, 18 Mar 1996 21:33:13 GMT
- Sender: gibson@netcom11.netcom.com
-
- Linda Kasparek (lindak@pumpkin.iii.net) wrote:
- : I am adding integer keys, of which some are duplicates, to an STL
- : multimap. If I were to iterate through one of those duplicate keys,
- : would I be guaranteed to receive the keys in the order they were added?
-
- Note: please use shorter lines.
-
- Answer: nope. If you look into how multimap is implemented, it uses
- a red-black tree, which does not maintain insertion order.
- --
- Bob Gibson -- gibson@netcom.com
- +----------------------------------------------------------------------+
- | Microsoft Network is prohibited from redistributing this work in any |
- | form, in whole or in part without license. License to distribute |
- | this work is available to Microsoft at $500. Transmission without |
- | permission constitutes an agreement to these terms. |
- | Premission is hereby granted to duplicate this restriction. |
- +----------------------------------------------------------------------+
-